﻿using System;
using System.Collections.Generic;
using System.Text;

namespace boat
{
    enum BoatTradeType { eHomeTrade = 0, eForignTrade = 1};
    enum BoatPriority { P1, P2, P3 };
    enum BoatLoadingType { LoadingByOneEquipment, LoadingByTwoEquipment, LoadingByThreeEquipment, LoadingByFourEquipment};
    enum BoatType { A, B, C};
    class Boat
    {
        public string   ID;
        public string   Name;
        public BoatPriority Priority = BoatPriority.P1;
        public double   Length; //meter
        public int   Tons; //kg
        public BoatTradeType TradeType = BoatTradeType.eHomeTrade;
        public BoatType boatType;
        public BoatLoadingType LoadingType = BoatLoadingType.LoadingByTwoEquipment;
        public double BoatEnterHours = 0;

        public DateTime BoatEnterStartTime;
        public DateTime BoatEnterEndTime;

        public DateTime BoatCheckStartTime;
        public DateTime BoatCheckEndTime;

        public DateTime BoatWaitStartTimeBeforeLoading;
        public DateTime BoatWaitEndTimBeforeLoadinge;

        public DateTime BoatLoadingStartTime;
        public DateTime BoatLoadingEndTime;

        public DateTime BoatLeakStartTime;
        public DateTime BoatLeakEndTime;

        public DateTime BoatWaitingStartTimeAfterLoading;
        public DateTime BoatWaitingEndTimeAfterLoading;

        public DateTime BoatCheckStartTimeAfterLoading;
        public DateTime BoatCheckEndTimeAfterLoading;

        public DateTime BoatLeaveStartTime;
        public DateTime BoatLeaveEndTime;

        public Boat()
        { 
        
        }
    }

    enum Berthsline { LineOne, LineTwo, LineThree};
    class BoatLoadingEquipment
    {
        public string ID;
        public string Name;
        public DateTime WorkStartTime;
        public DateTime WorkEndTime;
        public Berthsline EquipmentLocation;

        public BoatLoadingEquipment()
        { }
    }

    class EquipmentsLoadBoat
    {
        public string[] EquipmentIDs;
        public string BoatID;
        public EquipmentsLoadBoat()
        { }
    }
}
